try:
    with open(filename, "rb", 0) as fsock:
        fsock.seek(-128, 2)
        tagdata = fsock.read(128)
except IOError:
    pass

def file_op_1():
    try:
        f = open('test', 'r')
        try:
            f.readline()
        finally:
            f.close()
    except IOError:
        pass

def file_op_2():
try:
    with open('test', 'r') as f:
        f.readline()
except IOError:
    pass

if __name__ == '__main__':
    file_op_2()
